var Review = function () {
    var Filter = function () {
        $('#class_id').change(function () {
            if (!$('#class_id').val()) {
                return false;
            }
            
            $.ajax({
                url: $('.url-data').val(),
                type: 'post',
                data:  $('#class_id').serializeArray()
            }).done(function(response) {
                $('.table-content').html(response);
            })
            .fail(function() {
                //alert('Check Your Connection.');
            });
            
        }).first().trigger('change');
        
        
        $('#course').change(function () {
            window.location = $(this).attr('data-href') + '/' + $(this).val() ;
        });
    }
        
    return {
        init: function () {
            Filter();
        }
    
    };

}();